<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.1.1">
  <link rel="apple-touch-icon" sizes="180x180" href="/hexo/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/hexo/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/hexo/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/hexo/images/logo.svg" color="#222">

<link rel="stylesheet" href="/hexo/css/main.css">


<link rel="stylesheet" href="/hexo/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"youchen12138.gitee.io","root":"/hexo/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="CSS3 文本阴影text-shadow 属性应用于阴影文本 语法 text-shadow：h-shadow v-shadow blur color  text-outline 属性规定文本轮廓 语法 text-outline：thickness(轮廓粗细) blur color  兼容性任何主流浏览器都不支持 text-outline 属性 CSS3 换行word-break 属性规定自动换行的">
<meta property="og:type" content="article">
<meta property="og:title" content="CSS进阶知识点--文本与字体（overflow及获取特殊字体）">
<meta property="og:url" content="https://youchen12138.gitee.io/hexo/2020/08/26/CSS%E8%BF%9B%E9%98%B6%E7%9F%A5%E8%AF%86%E7%82%B9-%E6%96%87%E6%9C%AC%E4%B8%8E%E5%AD%97%E4%BD%93%EF%BC%88overflow%E5%8F%8A%E8%8E%B7%E5%8F%96%E7%89%B9%E6%AE%8A%E5%AD%97%E4%BD%93%EF%BC%89/index.html">
<meta property="og:site_name" content="幽辰的博客">
<meta property="og:description" content="CSS3 文本阴影text-shadow 属性应用于阴影文本 语法 text-shadow：h-shadow v-shadow blur color  text-outline 属性规定文本轮廓 语法 text-outline：thickness(轮廓粗细) blur color  兼容性任何主流浏览器都不支持 text-outline 属性 CSS3 换行word-break 属性规定自动换行的">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="https://upload-images.jianshu.io/upload_images/16731485-ffa9a09c2e6900c0.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240">
<meta property="article:published_time" content="2020-08-26T05:02:30.000Z">
<meta property="article:modified_time" content="2020-08-26T05:02:48.800Z">
<meta property="article:author" content="幽辰">
<meta property="article:tag" content="CSS">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://upload-images.jianshu.io/upload_images/16731485-ffa9a09c2e6900c0.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240">

<link rel="canonical" href="https://youchen12138.gitee.io/hexo/2020/08/26/CSS%E8%BF%9B%E9%98%B6%E7%9F%A5%E8%AF%86%E7%82%B9-%E6%96%87%E6%9C%AC%E4%B8%8E%E5%AD%97%E4%BD%93%EF%BC%88overflow%E5%8F%8A%E8%8E%B7%E5%8F%96%E7%89%B9%E6%AE%8A%E5%AD%97%E4%BD%93%EF%BC%89/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'en'
  };
</script>

  <title>CSS进阶知识点--文本与字体（overflow及获取特殊字体） | 幽辰的博客</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="Toggle navigation bar">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/hexo/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">幽辰的博客</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/hexo/" rel="section"><i class="fa fa-home fa-fw"></i>Home</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/hexo/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>Tags<span class="badge">23</span></a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/hexo/categories/" rel="section"><i class="fa fa-th fa-fw"></i>Categories<span class="badge">14</span></a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/hexo/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>Archives<span class="badge">127</span></a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="en">
    <link itemprop="mainEntityOfPage" href="https://youchen12138.gitee.io/hexo/2020/08/26/CSS%E8%BF%9B%E9%98%B6%E7%9F%A5%E8%AF%86%E7%82%B9-%E6%96%87%E6%9C%AC%E4%B8%8E%E5%AD%97%E4%BD%93%EF%BC%88overflow%E5%8F%8A%E8%8E%B7%E5%8F%96%E7%89%B9%E6%AE%8A%E5%AD%97%E4%BD%93%EF%BC%89/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/hexo/images/avatar.jpg">
      <meta itemprop="name" content="幽辰">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="幽辰的博客">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          CSS进阶知识点--文本与字体（overflow及获取特殊字体）
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">Posted on</span>
              

              <time title="Created: 2020-08-26 13:02:30 / Modified: 13:02:48" itemprop="dateCreated datePublished" datetime="2020-08-26T13:02:30+08:00">2020-08-26</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">In</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/hexo/categories/CSS/" itemprop="url" rel="index"><span itemprop="name">CSS</span></a>
                </span>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h1 id="CSS3-文本阴影"><a href="#CSS3-文本阴影" class="headerlink" title="CSS3 文本阴影"></a>CSS3 文本阴影</h1><h2 id="text-shadow-属性"><a href="#text-shadow-属性" class="headerlink" title="text-shadow 属性"></a>text-shadow 属性</h2><p>应用于阴影文本</p>
<h3 id="语法"><a href="#语法" class="headerlink" title="语法"></a>语法</h3><blockquote>
<p>text-shadow：h-shadow v-shadow blur color</p>
</blockquote>
<h2 id="text-outline-属性"><a href="#text-outline-属性" class="headerlink" title="text-outline 属性"></a>text-outline 属性</h2><p>规定文本轮廓</p>
<h3 id="语法-1"><a href="#语法-1" class="headerlink" title="语法"></a>语法</h3><blockquote>
<p>text-outline：thickness(轮廓粗细) blur color</p>
</blockquote>
<h3 id="兼容性"><a href="#兼容性" class="headerlink" title="兼容性"></a>兼容性</h3><p>任何主流浏览器都不支持 text-outline 属性</p>
<h1 id="CSS3-换行"><a href="#CSS3-换行" class="headerlink" title="CSS3 换行"></a>CSS3 换行</h1><h2 id="word-break-属性"><a href="#word-break-属性" class="headerlink" title="word-break 属性"></a>word-break 属性</h2><p>规定自动换行的处理方法</p>
<h3 id="语法-2"><a href="#语法-2" class="headerlink" title="语法"></a>语法</h3><blockquote>
<p>word-break：normal | break-all | keep-all</p>
</blockquote>
<h2 id="word-wrap-属性"><a href="#word-wrap-属性" class="headerlink" title="word-wrap 属性"></a>word-wrap 属性</h2><p>允许长单词或 URL 地址换行到下一行,只针对英文</p>
<h3 id="语法-3"><a href="#语法-3" class="headerlink" title="语法"></a>语法</h3><blockquote>
<p>word-wrap：normal | break-word</p>
</blockquote>
<h1 id="CSS3-新文本属性"><a href="#CSS3-新文本属性" class="headerlink" title="CSS3 新文本属性"></a>CSS3 新文本属性</h1><h2 id="text-align-last-属性"><a href="#text-align-last-属性" class="headerlink" title="text-align-last 属性"></a>text-align-last 属性</h2><p>规定如何对齐文本最后一行</p>
<h3 id="语法-4"><a href="#语法-4" class="headerlink" title="语法"></a>语法</h3><blockquote>
<p>text-align-last：auto | left | right | center | justify | start | end | initial | inherit</p>
</blockquote>
<h3 id="兼容性-1"><a href="#兼容性-1" class="headerlink" title="兼容性"></a>兼容性</h3><p>只有 IE 支持，火狐浏览器要加上前缀</p>
<h3 id="注意"><a href="#注意" class="headerlink" title="注意"></a>注意</h3><p>text-align-last 属性只有在 text-align 属性设置为 “justify” 时才起作用</p>
<h2 id="text-overflow-属性"><a href="#text-overflow-属性" class="headerlink" title="text-overflow 属性"></a>text-overflow 属性</h2><p>规定当文本溢出包含元素时发生的事情</p>
<h3 id="语法-5"><a href="#语法-5" class="headerlink" title="语法"></a>语法</h3><blockquote>
<p>text-overflow：clip | ellipsis | string</p>
</blockquote>
<h3 id="注意-1"><a href="#注意-1" class="headerlink" title="注意"></a>注意</h3><ol>
<li><p>在写 text-overflow 时，一定要在前面写上 <code>overflow：hidden</code></p>
</li>
<li><p>string 属性值只有在火狐浏览器中兼容</p>
</li>
</ol>
<h1 id="font-face"><a href="#font-face" class="headerlink" title="@font-face"></a>@font-face</h1><h2 id="语法规则"><a href="#语法规则" class="headerlink" title="语法规则"></a>语法规则</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">@font-face&#123;</span><br><span class="line">    font-family: &lt;YourWebFontName&gt;;              &#x2F;&#x2F;字体名称，必填</span><br><span class="line">    src: &lt;source&gt;[&lt;format&gt;][&lt;source&gt;[&lt;format&gt;]]*;&#x2F;&#x2F;字体存放路径，可多个，必填</span><br><span class="line">    [font-weight: &lt;weight&gt;];                     &#x2F;&#x2F;字体粗细，选填</span><br><span class="line">    [font-style: &lt;style&gt;];                       &#x2F;&#x2F;字体样式，选填</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="取值规则"><a href="#取值规则" class="headerlink" title="取值规则"></a>取值规则</h3><h4 id="YourWebFontName"><a href="#YourWebFontName" class="headerlink" title="YourWebFontName"></a>YourWebFontName</h4><p>自定义的字体名称，他将被引用到 Web 元素中的 font-family</p>
<h4 id="source"><a href="#source" class="headerlink" title="source"></a>source</h4><p>自定义的字体的存放路径，可以是相对路径也可以是绝对路径（建议用相对路径）</p>
<h4 id="format"><a href="#format" class="headerlink" title="format"></a>format</h4><p>自定义字体的格式，主要用来帮助浏览器识别</p>
<h4 id="weight-和-style"><a href="#weight-和-style" class="headerlink" title="weight 和 style"></a>weight 和 style</h4><p>粗体和斜体</p>
<h3 id="字体格式"><a href="#字体格式" class="headerlink" title="字体格式"></a>字体格式</h3><h4 id="TrueType-tff-格式："><a href="#TrueType-tff-格式：" class="headerlink" title="TrueType(.tff)格式："></a>TrueType(.tff)格式：</h4><p>.ttf 字体是 Windows 和 Mac 的最常见的字体，是一种 RAW 格式，因此他不为网站优化</p>
<p>可以用在手机端</p>
<h4 id="OpenType-otf-格式"><a href="#OpenType-otf-格式" class="headerlink" title="OpenType(.otf)格式"></a>OpenType(.otf)格式</h4><p>.otf 字体被认为是一种原始的字体格式，其内置在 TureType 的基础上，所以也提供了更多的功能</p>
<p>可以用于手机端</p>
<h4 id="Web-Open-Font-Format-woff-格式："><a href="#Web-Open-Font-Format-woff-格式：" class="headerlink" title="Web Open Font Format(.woff)格式："></a>Web Open Font Format(.woff)格式：</h4><p>.woff 字体是 Web 字体中最佳格式，他是一个开放的 TrueType / OpenType 的压缩版本，同时也支持元数据包的分离</p>
<p>不能用于手机端</p>
<h4 id="Embedded-Open-Type-eot-格式："><a href="#Embedded-Open-Type-eot-格式：" class="headerlink" title="Embedded Open Type(.eot)格式："></a>Embedded Open Type(.eot)格式：</h4><p>.eot 字体是 IE 专用字体，可以从 TrueType 创建此格式字体</p>
<p>只有 IE 可以兼容</p>
<h4 id="SVG-svg-格式："><a href="#SVG-svg-格式：" class="headerlink" title="SVG(.svg)格式："></a>SVG(.svg)格式：</h4><p>.svg 字体是基于 SVG 字体渲染的一种格式</p>
<h2 id="字体的应用"><a href="#字体的应用" class="headerlink" title="字体的应用"></a>字体的应用</h2><p><img src="https://upload-images.jianshu.io/upload_images/16731485-ffa9a09c2e6900c0.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<h1 id="overflow-属性"><a href="#overflow-属性" class="headerlink" title="overflow 属性"></a>overflow 属性</h1><ul>
<li><p>visible    默认值。内容不会被修剪，会呈现在元素框之外。</p>
</li>
<li><p>hidden    内容会被修剪，并且其余内容是不可见的。</p>
</li>
<li><p>scroll    内容会被修剪，但是浏览器会显示滚动条以便查看其余的内容。</p>
</li>
<li><p>auto    如果内容被修剪，则浏览器会显示滚动条以便查看其余的内容。</p>
</li>
<li><p>inherit    规定应该从父元素继承 overflow 属性的值。</p>
</li>
</ul>

    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/hexo/tags/CSS/" rel="tag"># CSS</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/hexo/2020/08/26/CSS%E8%BF%9B%E9%98%B6%E7%9F%A5%E8%AF%86%E7%82%B9-%E6%B8%90%E5%8F%98/" rel="prev" title="CSS进阶知识点--渐变">
      <i class="fa fa-chevron-left"></i> CSS进阶知识点--渐变
    </a></div>
      <div class="post-nav-item">
    <a href="/hexo/2020/08/26/CSS%E8%BF%9B%E9%98%B6%E7%9F%A5%E8%AF%86%E7%82%B9-%E8%83%8C%E6%99%AF/" rel="next" title="CSS进阶知识点--背景">
      CSS进阶知识点--背景 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          Table of Contents
        </li>
        <li class="sidebar-nav-overview">
          Overview
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#CSS3-%E6%96%87%E6%9C%AC%E9%98%B4%E5%BD%B1"><span class="nav-number">1.</span> <span class="nav-text">CSS3 文本阴影</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#text-shadow-%E5%B1%9E%E6%80%A7"><span class="nav-number">1.1.</span> <span class="nav-text">text-shadow 属性</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%AF%AD%E6%B3%95"><span class="nav-number">1.1.1.</span> <span class="nav-text">语法</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#text-outline-%E5%B1%9E%E6%80%A7"><span class="nav-number">1.2.</span> <span class="nav-text">text-outline 属性</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%AF%AD%E6%B3%95-1"><span class="nav-number">1.2.1.</span> <span class="nav-text">语法</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%85%BC%E5%AE%B9%E6%80%A7"><span class="nav-number">1.2.2.</span> <span class="nav-text">兼容性</span></a></li></ol></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#CSS3-%E6%8D%A2%E8%A1%8C"><span class="nav-number">2.</span> <span class="nav-text">CSS3 换行</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#word-break-%E5%B1%9E%E6%80%A7"><span class="nav-number">2.1.</span> <span class="nav-text">word-break 属性</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%AF%AD%E6%B3%95-2"><span class="nav-number">2.1.1.</span> <span class="nav-text">语法</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#word-wrap-%E5%B1%9E%E6%80%A7"><span class="nav-number">2.2.</span> <span class="nav-text">word-wrap 属性</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%AF%AD%E6%B3%95-3"><span class="nav-number">2.2.1.</span> <span class="nav-text">语法</span></a></li></ol></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#CSS3-%E6%96%B0%E6%96%87%E6%9C%AC%E5%B1%9E%E6%80%A7"><span class="nav-number">3.</span> <span class="nav-text">CSS3 新文本属性</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#text-align-last-%E5%B1%9E%E6%80%A7"><span class="nav-number">3.1.</span> <span class="nav-text">text-align-last 属性</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%AF%AD%E6%B3%95-4"><span class="nav-number">3.1.1.</span> <span class="nav-text">语法</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%85%BC%E5%AE%B9%E6%80%A7-1"><span class="nav-number">3.1.2.</span> <span class="nav-text">兼容性</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%B3%A8%E6%84%8F"><span class="nav-number">3.1.3.</span> <span class="nav-text">注意</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#text-overflow-%E5%B1%9E%E6%80%A7"><span class="nav-number">3.2.</span> <span class="nav-text">text-overflow 属性</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%AF%AD%E6%B3%95-5"><span class="nav-number">3.2.1.</span> <span class="nav-text">语法</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%B3%A8%E6%84%8F-1"><span class="nav-number">3.2.2.</span> <span class="nav-text">注意</span></a></li></ol></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#font-face"><span class="nav-number">4.</span> <span class="nav-text">@font-face</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E8%AF%AD%E6%B3%95%E8%A7%84%E5%88%99"><span class="nav-number">4.1.</span> <span class="nav-text">语法规则</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%8F%96%E5%80%BC%E8%A7%84%E5%88%99"><span class="nav-number">4.1.1.</span> <span class="nav-text">取值规则</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#YourWebFontName"><span class="nav-number">4.1.1.1.</span> <span class="nav-text">YourWebFontName</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#source"><span class="nav-number">4.1.1.2.</span> <span class="nav-text">source</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#format"><span class="nav-number">4.1.1.3.</span> <span class="nav-text">format</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#weight-%E5%92%8C-style"><span class="nav-number">4.1.1.4.</span> <span class="nav-text">weight 和 style</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AD%97%E4%BD%93%E6%A0%BC%E5%BC%8F"><span class="nav-number">4.1.2.</span> <span class="nav-text">字体格式</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#TrueType-tff-%E6%A0%BC%E5%BC%8F%EF%BC%9A"><span class="nav-number">4.1.2.1.</span> <span class="nav-text">TrueType(.tff)格式：</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#OpenType-otf-%E6%A0%BC%E5%BC%8F"><span class="nav-number">4.1.2.2.</span> <span class="nav-text">OpenType(.otf)格式</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#Web-Open-Font-Format-woff-%E6%A0%BC%E5%BC%8F%EF%BC%9A"><span class="nav-number">4.1.2.3.</span> <span class="nav-text">Web Open Font Format(.woff)格式：</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#Embedded-Open-Type-eot-%E6%A0%BC%E5%BC%8F%EF%BC%9A"><span class="nav-number">4.1.2.4.</span> <span class="nav-text">Embedded Open Type(.eot)格式：</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#SVG-svg-%E6%A0%BC%E5%BC%8F%EF%BC%9A"><span class="nav-number">4.1.2.5.</span> <span class="nav-text">SVG(.svg)格式：</span></a></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AD%97%E4%BD%93%E7%9A%84%E5%BA%94%E7%94%A8"><span class="nav-number">4.2.</span> <span class="nav-text">字体的应用</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#overflow-%E5%B1%9E%E6%80%A7"><span class="nav-number">5.</span> <span class="nav-text">overflow 属性</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="幽辰"
      src="/hexo/images/avatar.jpg">
  <p class="site-author-name" itemprop="name">幽辰</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/hexo/archives/">
        
          <span class="site-state-item-count">127</span>
          <span class="site-state-item-name">posts</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/hexo/categories/">
          
        <span class="site-state-item-count">14</span>
        <span class="site-state-item-name">categories</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/hexo/tags/">
          
        <span class="site-state-item-count">23</span>
        <span class="site-state-item-name">tags</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">幽辰</span>
</div>
  <div class="powered-by">Powered by <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a>
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/hexo/lib/anime.min.js"></script>
  <script src="/hexo/lib/velocity/velocity.min.js"></script>
  <script src="/hexo/lib/velocity/velocity.ui.min.js"></script>

<script src="/hexo/js/utils.js"></script>

<script src="/hexo/js/motion.js"></script>


<script src="/hexo/js/schemes/pisces.js"></script>


<script src="/hexo/js/next-boot.js"></script>




  















  

  

</body>
</html>
